import "nprogress/nprogress.css";
import {start, done, configure} from "nprogress";

configure({
  trickleSpeed: 15,
  showSpinner: false,
})

// 页面加载进度条
export default function getPageComponent(pageCompResolver) {
  return async () => {
    start();
    const comp = await pageCompResolver();
    done();
    return comp;
  }
}